// pages/allKnow/details/details.js
Page({

 
  data: {

  },

//  --------------数据加载模块 start-------------------
  onLoad: function (options) {
    var akid = options.akid;
    var akName = options.akName;
    //console.log("akid:"+akid);
    //console.log("akName:"+akName);
    this.setData({
      akid:akid,
      akName:akName,
    });
    this.getAllKnowDetails();  // 获取考研全知道细节内容
  },
//  --------------数据加载模块 end-------------------


//  --------------功能模块 start-------------------
getAllKnowDetails:function(){
  var mark = 'getAllKnowDetails';
  var akid = this.data.akid
  wx.request({
    url: 'http://localhost:8080/youYanZaiXian/AllKnowServlet',
    method: 'POST',
    data:{
      mark:mark,
      akid:akid,
    },
    header: {
      'content-type': 'application/x-www-form-urlencoded',
      'Accept': 'application/json'
    },
    success: (res)=>{
      var allKnow = res.data.data.allKnow;
      this.setData({
        allKnow:allKnow,
      })
      //console.log(this.data.allKnow.akContent)
    }
  });
},

//  --------------功能 end-------------------


  
})